<template>
	<view class="content">
		<view class="title">
			<image class="title-img" src="/static/logo.png"></image>
		</view>
		<view>
			<view class="form-item">
				<input class="input" v-model="formData.accountNumber" placeholder="账号/手机号"
					@blur="validateAccountNumber" />
				<text class="error" v-if="errors.accountNumber">{{ errors.accountNumber }}</text>
			</view>
			<view class="form-item">
				<input class="input" v-model="formData.password" placeholder="密码" @blur="validatePassword"
					:type="showPassword ? 'text' : 'password'" maxlength="12" />
					<!-- <text @click="showPassword = !showPassword">
					    {{ showPassword ? '隐藏' : '显示' }}
					  </text> -->
				<text class="error" v-if="errors.password">{{ errors.password }}</text>
			</view>
			<view class="login-register">
				<!-- <text class="forget" @click="getPopup">忘记密码</text> -->
				<text class="forget" @click="getregister">注册账号</text>
			</view>
			
		</view>
		<view class="foot" @click="login">
			<image class="foot-img" src="/static/muddlednessImg/login.png"></image>
			<text class="foot-login">登录</text>
		</view>
		<!-- 温馨提示弹窗组件 -->
		<PromptPopup ref="pointOut" pointOut="确定退出登录吗？" option="3" @confirm="collectMoney" />
	</view>
</template>

<script src="./index.js"></script>
<style src="./index.scss" lang="scss"></style>